package day0302;

import java.time.LocalDate;
import java.time.temporal.ChronoField;

public class Demo04 {

    public static void main(String[] args) {
//        LocalDate now = LocalDate.now();
//        LocalDate localDate = LocalDate.of(2023, Month.MARCH, 8);
        LocalDate localDate = LocalDate.of(2023, 3, 8);
        System.out.println(localDate);
//        Month month = now.getMonth();
//        int monthValue = now.getMonthValue();

//        System.out.println(monthValue);
//        System.out.println(month);
//        System.out.println(Month.of(monthValue));
//        Month march = Month.MARCH;

//        LocalDate localDate = now.plusDays(-10);
//        LocalDate localDate = now.minusDays(-10);
//        System.out.println(localDate);

//        boolean leapYear = now.isLeapYear();

//        DayOfWeek dayOfWeek = localDate.getDayOfWeek();

        int i = localDate.get(ChronoField.DAY_OF_YEAR);
        System.out.println(i);
    }
}
